package com.jingdianjichi.auth.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdianjichi.auth.infra.basic.entity.AuthRole;
import com.jingdianjichi.auth.infra.basic.service.AuthRoleService;
import com.jingdianjichi.auth.infra.basic.mapper.AuthRoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
* @author 20432
* @description 针对表【auth_role(角色表)】的数据库操作Service实现
* @createDate 2025-10-19 13:58:18
*/
@Service
public class AuthRoleServiceImpl extends ServiceImpl<AuthRoleMapper, AuthRole>
    implements AuthRoleService{

    @Resource
    private AuthRoleMapper authRoleMapper;
    @Override
    public Integer insert(AuthRole authRole) {
        return authRoleMapper.insert(authRole);
    }

    @Override
    public Integer update(AuthRole authUser) {
        return authRoleMapper.update(authUser);
    }

    @Override
    public Integer delete(AuthRole authRole) {
        return authRoleMapper.deleteById(authRole.getId());
    }

    @Override
    public AuthRole queryByCondition(AuthRole authRole) {
        return authRoleMapper.queryByCondition(authRole);
    }

}




